package com.hospital.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author WuLiting
 * @since 2021-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_case_info")
public class CaseInfo extends PageParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 病例ID
     */
    @TableId(value = "case_info_id", type = IdType.ID_WORKER_STR)
    private String caseInfoId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 医生ID
     */
    private String doctorId;

    /**
     * 诊断
     */
    private String diagnostic;

    /**
     * 医嘱
     */
    private String doctorOrder;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 是否结算
     */
    private String caseStatus;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String sex;

    @TableField(exist = false)
    private String age;

    @TableField(exist = false)
    private String phoneNumber;

    @TableField(exist = false)
    private String medicines;

    @TableField(exist = false)
    private List<CaseMedicine> medicineList;

}
